<?php

namespace IDock\Insurance\DEMO\Response;

use IDock\Http\Response;
use IDock\Printer\PremiumUnderwritingPrinter;
use IDock\Printer\ValidateCarCodePrinter;

class ValidateCarResponse extends AllDEMOResponse
{

    /*** @var ValidateCarCodePrinter $printer */
    public $printer = ValidateCarCodePrinter::class;

    public function printerInit(): Response
    {
        $code = $this->getRecords(0)['code'] ?? [];

        $this->printer->code = $code;

        return $this;
    }
}
